package edu.team7.las.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the t5_leave_application database table.
 * 
 */
@Entity
@Table(name="t5_leave_application")
@NamedQuery(name="T5LeaveApplication.findAll", query="SELECT t FROM T5LeaveApplication t")
public class T5LeaveApplication implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="idt5_leave_application")
	private int idt5LeaveApplication;

	@Temporal(TemporalType.DATE)
	private Date applicationDate;

	@Temporal(TemporalType.DATE)
	private Date endDate;

	private String isApproved;

	private String reason;

	@Temporal(TemporalType.DATE)
	private Date startDate;

	private String status;

	private String workDissemination;

	//bi-directional many-to-one association to T1Employee
	@ManyToOne
	@JoinColumn(name="idEmployee")
	private T1Employee t1Employee;

	//bi-directional many-to-one association to T2Leavetype
	@ManyToOne
	@JoinColumn(name="idLeaveType")
	private T2Leavetype t2Leavetype;

	public T5LeaveApplication() {
	}

	public int getIdt5LeaveApplication() {
		return this.idt5LeaveApplication;
	}

	public void setIdt5LeaveApplication(int idt5LeaveApplication) {
		this.idt5LeaveApplication = idt5LeaveApplication;
	}

	public Date getApplicationDate() {
		return this.applicationDate;
	}

	public void setApplicationDate(Date applicationDate) {
		this.applicationDate = applicationDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getIsApproved() {
		return this.isApproved;
	}

	public void setIsApproved(String isApproved) {
		this.isApproved = isApproved;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getWorkDissemination() {
		return this.workDissemination;
	}

	public void setWorkDissemination(String workDissemination) {
		this.workDissemination = workDissemination;
	}

	public T1Employee getT1Employee() {
		return this.t1Employee;
	}

	public void setT1Employee(T1Employee t1Employee) {
		this.t1Employee = t1Employee;
	}

	public T2Leavetype getT2Leavetype() {
		return this.t2Leavetype;
	}

	public void setT2Leavetype(T2Leavetype t2Leavetype) {
		this.t2Leavetype = t2Leavetype;
	}

}